package com.yanmaohu.yulia.bean;

public final class IntervalValueExpressionPlusIntervalTerm implements IntervalValueExpression {

    private int beginIndex;
    private int endIndex;
    private IntervalValueExpression intervalValueExpression;
    private IntervalTerm intervalTerm;

    public IntervalValueExpressionPlusIntervalTerm(IntervalValueExpression intervalValueExpression, IntervalTerm intervalTerm) {
        this.beginIndex = intervalValueExpression.getBeginIndex();
        this.endIndex = intervalTerm.getEndIndex();
        this.intervalValueExpression = intervalValueExpression;
        this.intervalTerm = intervalTerm;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public IntervalValueExpression getIntervalValueExpression() {
        return intervalValueExpression;
    }

    public IntervalTerm getIntervalTerm() {
        return intervalTerm;
    }

}
